Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@datacamp/waffles-tokens

Package Overview
Dependencies
Maintainers
42
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datacamp/waffles-tokens

Usage documentation available at [waffles.datacamp.com/component-library/tokens](https://waffles.datacamp.com/component-library/tokens).

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2.9K
increased by68.9%
Maintainers
42
Weekly downloads
 
Created
Source

Tokens

Usage documentation available at waffles.datacamp.com/component-library/tokens.

This package contains the all the design tokens used across waffles, and also the build methods to generate exposed files with these values.

Structure

All tokens are stored in the /properties directory as json files. On build these are deep merged and augmented with the transforms. This full data structure is then passed to the formatters to output different files. This is all orchestrated using Style Dictionary and controlled with the build.js file.

Outputs

  • core-tokens.json is the main exported tokens file. It is a flattened and simplified version of the tokens.
  • future-tokens.json is the full tokens file that will be made the main export in the future. The structure of this file is not fixed or documented, so should be used with caution! Within waffles packages this is the version that will be used, since breaking changes can be absorbed. At some point in the future once it is more stable, this will be made the main export of the package.
  • variables.scss contains the same data as the core-tokens file but exposed as scss variables. This is used in to generate utility classes and stylesheets in other packages.

FAQs

Package last updated on 28 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc